home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: creating a view as window/frame/view
- Sent: 6/6/96 2:31 PM
- Received: 6/6/96 2:51 PM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >My part needs to open up an additional window with scroll bars, but I can't
- >find any good example recipies.
- >
- >My OpenDoc part is a graphing part, and I want to allow the user to open up
- >a window to show the data in a speadsheet style view with scroll bars, and
- >close box.
- >
- >I can find good example recipies for floating windows but nothing for what
- >I want to do. In the FW_CFloatingWindow examples that I have seen they
- >always create their own window using FW_NEW, but in FWWindow.h it says -
- >"You should never directly create a FW_CWindow, ODF will create it for
- >you". - does this rule not apply to floating windows?
- >
- >Thanks for any help,
- >Neal Williams
- >Corda Technologies, Inc.
-
- What you want to do is what the 'View In Window' command does. If you
- want to have your own menu command the easiest way to do that is to
- directly call myFrame->GetPresentation(ev)->OpenPartWindow(...). The
- facet parameter can be null. By default the root frame of the new window
- will have the same presentation has the source frame. To change that
- override FW_CFrame:NewPartWindow and pass the right presentation to the
- constructor of FW_CWindow.
-
- Limitation: ODF currently allows only one secondary window. This will be
- fixed in a future release.
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-